{template 'common/header'}
<ol class="breadcrumb we7-breadcrumb">
	<a href="{php echo url('mc/member')}"><i class="wi wi-back-circle"></i> </a>
	<li>
		<a href="{php echo url('mc/member')}">会员列表</a>
	</li>
	<li>
		{if $do == 'credit_statistics'}
		数据统计
		{elseif $do == 'member_credits'}
		积分/余额
		{else}
		基本信息
		{/if}
	</li>
</ol>
<div class="btn-group we7-btn-group">
	<a href="{php echo url('mc/member/base_information', array('uid' => $uid))}" class="btn {if $do == 'base_information'}active{/if}">基本信息</a>
	<a href="{php echo url('mc/member/member_credits', array('uid' => $uid))}" class="btn {if $do == 'member_credits'}active{/if}">{$creditnames['credit1']['title']}/{$creditnames['credit2']['title']}</a>
	<a href="{php echo url('mc/member/credit_statistics', array('uid' => $uid, 'type' => 1))}" class="btn {if $do == 'credit_statistics'}active{/if}">数据统计</a>
</div>
{if $do == 'credit_statistics'}
<style>
	.account-stat{overflow:hidden; color:#666;}
	.account-stat .account-stat-btn{width:100%; overflow:hidden;}
	.account-stat .account-stat-btn > div{text-align:center; margin-bottom:5px;margin-right:2%; float:left;width:48%; padding-top:10px;font-size:16px; border-left:1px #DDD solid;}
	.account-stat .account-stat-btn > div:first-child{border-left:0;}
	.account-stat .account-stat-btn .stat{width:80%;margin:10px auto;font-size:15px}
</style>
<div class="panel panel-default" style="padding:1em;margin-top:2em">
	<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin: -1em -1em 1em -1em;">
		<div class="navbar-header">
			<a class="navbar-brand" href="javascript:;">数据统计</a>
			<ul class="nav navbar-nav navbar-right">
				<li {if $_GPC['type'] == 1}class="active"{/if}><a href="{php echo url('mc/member/credit_statistics', array('uid' => $uid, type => 1));}">今日</a></li>
				<li {if $_GPC['type'] == -1}class="active"{/if}><a href="{php echo url('mc/member/credit_statistics', array('uid' => $uid, type => -1));}">昨日</a></li>
				<form class="navbar-form navbar-left" role="search" id="form1">
					<input name="c" value="mc" type="hidden" />
					<input name="a" value="member" type="hidden" />
					<input name="do" value="credit_statistics" type="hidden" />
					<input name="uid" value="{$uid}" type="hidden" />
					{php echo tpl_form_field_daterange('datelimit', array('start' => $_GPC['datelimit']['start'],'end' => $_GPC['datelimit']['end']), '')}
				</form>
			</ul>
		</div>
	</nav>
	<div class="account-stat">
		<div class="account-stat-btn">
			{loop $credits $key $li}
			<div>
				<strong>{$li}</strong>
				<div id="rule" class="stat">
					<div>增加 <strong><span class="text-success">{$data[$key]['add']}</span></strong></div>
					<div>减少 <strong><span class="text-danger">{$data[$key]['del']}</span></strong></div>
				</div>
			</div>
			{/loop}
		</div>
	</div>
</div>
<script>
	require(['jquery', 'daterangepicker'], function($,c) {
		$(function() {
			$('.daterange').on('apply.daterangepicker', function(ev, picker) {
				$('#form1')[0].submit();
			});
		})
	});
</script>
{/if}
{if $do == 'member_credits'}
<div class="main">
	<form action="" class="we7-form form" method="post" enctype="multipart/form-data">
		{if !empty($credits)}
		<!--积分、余额-->
		<table class="table we7-table table-hover table-form">
			<col width="140px">
			<col />
			<col width="100px">
			<tr>
				<th class="text-left" colspan="3">会员{$creditnames['credit1']['title']}/{$creditnames['credit2']['title']}操作</th>
			</tr>
			<tr>
				<td class="table-label">{$creditnames['credit1']['title']}</td>
				<td>{$credits['credit1']}</td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" title="{$creditnames['credit1']['title']}" class="modal-trade-credit1" data-type="credit1" data-uid="{$uid}" data-title="{$creditnames['credit1']['title']}
">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$creditnames['credit2']['title']}</td>
				<td>{$credits['credit2']}</td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" title="{$creditnames['credit2']['title']}" class="modal-trade-credit2" data-type="credit2" data-uid="{$uid}" data-title="{$creditnames['credit2']['title']}
">修改</a></div>
				</td>
			</tr>
		</table>

		<div class="member-credits-box">
			<div class="box-header">
				<a href="{php echo url('mc/member/member_credits', array('uid' => $uid, 'type' => 'credit1'))}" class=" {if $type == 'credit1'}active{/if}">{$creditnames['credit1']['title']}记录</a>
				<a href="{php echo url('mc/member/member_credits', array('uid' => $uid, 'type' => 'credit2'))}" class=" {if $type == 'credit2'}active{/if}">{$creditnames['credit2']['title']}记录</a>
				<a href="{php echo url('mc/member/export', array('uid' => $uid, 'type' => $type))}" target="_blank" class="pull-right color-default">导出记录</a>
			</div>
			<table class="table we7-table table-hover table-form">
				<col width="140px">
				<col />
				<col />
				<col />
				<col />
				<col />
				<tr>
					<th>账户类型</th>
					<th class="text-center">操作员</th>
					<th class="text-center">{$creditnames[$type]['title']}增减</th>
					<th class="text-center">模块</th>
					<th class="text-center">操作时间</th>
					<th class="text-center">备注</th>
				</tr>
				{if !empty($records)}
					{loop $records $record}
					<tr>
						<td class="text-center">{if $record['credittype'] == 'credit2'}{$creditnames['credit2']['title']}{else}{$creditnames['credit1']['title']}{/if}</td>
						<td class="text-center">{$record['username']}</td>
						<td class="text-center">{$record['num']}</td>
						<td class="text-center">{$record['system']}</td>
						<td class="text-center">{php echo date("Y-m-d H:i:s", $record['createtime'])}</td>
						<td class="text-center">{$record['remark']}</td>
					</tr>
					{/loop}
				{else}
				<tr>
					<th colspan="6">
						<div class="we7-empty-block">
							暂无数据
						</div>
					</th>
				</tr>
				{/if}
			</table>
			<div class="text-right">
				{$pager}
			</div>
		</div>
		<!--end积分、余额-->
		{/if}
	</form>
</div>
<script type="text/javascript">
require(['trade'], function(trade){
	trade.init();
});
</script>
{/if}
{if $do == 'base_information'}
<div class="main" id="js-base-information" ng-controller="baseInformation" ng-cloak>
	<form action="" class="we7-form form" method="post" enctype="multipart/form-data">
		{if !empty($profile)}
		<!--基本信息-->
		<table class="table we7-table table-hover table-form">
			<col width="140px">
			<col width="500px">
			<tr>
				<th class="text-left" colspan="3">会员信息</th>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['nickname']['title']}</td>
				<td ng-bind="profile.nickname"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;"></a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">密码</td>
				<td>*****</td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#password">修改</a></div>
				</td>
			</tr>
		</table>
		<table class="table we7-table table-hover table-form">
			<col width="140px">
			<col />
			<col width="100px">
			<tr>
				<th class="text-left" colspan="3">基本信息</th>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['avatar']['title']}</td>
				<td><img ng-src="{{profile.avatarUrl}}" alt="" class="img-circle" style="width: 65px; height: 65px;"/></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" ng-click="changeImage('avatar')">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">用户UID</td>
				<td colspan="2">{$uid}</td>
			</tr>
			<tr>
				<td class="table-label">所在会员组</td>
				<td ng-bind="groups[profile.groupid].title"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#groupid" ng-click="editInfo('groupid', profile.groupid)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['nickname']['title']}</td>
				<td ng-bind="profile.nickname"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#nickname" ng-click="editInfo('nickname', profile.nickname)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['realname']['title']}</td>
				<td ng-bind="profile.realname"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#realname" ng-click="editInfo('realname', profile.realname)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['gender']['title']}</td>
				<td ng-bind="sexes[profile.gender].name"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#gender" ng-click="editInfo('gender', profile.gender)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['birthyear']['title']}</td>
				<td ng-bind="profile.births"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#births" ng-click="editInfo('births', profile.births)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['nationality']['title']}</td>
				<td ng-bind="profile.resides"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#resides" ng-click="editInfo('resides', profile.resides)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['resideprovince']['title']}</td>
				<td ng-bind="profile.address"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#address" ng-click="editInfo('address', profile.address)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['mobile']['title']}</td>
				<td ng-bind="profile.mobile"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#mobile" ng-click="editInfo('mobile', profile.mobile)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['qq']['title']}</td>
				<td ng-bind="profile.qq"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#qq" ng-click="editInfo('qq', profile.qq)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['email']['title']}</td>
				<td ng-bind="profile.email"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#email" ng-click="editInfo('email', profile.email)">修改</a></div>
				</td>
			</tr>
		</table>
		<table class="table we7-table table-hover table-form">
			<col width="140px">
			<col />
			<col width="100px">
			<tr>
				<th class="text-left" colspan="3">联系方式</th>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['telephone']['title']}</td>
				<td ng-bind="profile.telephone"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#telephone" ng-click="editInfo('telephone', profile.telephone)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['msn']['title']}</td>
				<td ng-bind="profile.msn"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#msn" ng-click="editInfo('msn', profile.msn)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['taobao']['title']}</td>
				<td ng-bind="profile.taobao"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#taobao" ng-click="editInfo('taobao', profile.taobao)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['alipay']['title']}</td>
				<td ng-bind="profile.alipay"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#alipay" ng-click="editInfo('alipay', profile.alipay)">修改</a></div>
				</td>
			</tr>
		</table>
		<table class="table we7-table table-hover table-form">
			<col width="140px">
			<col width="100px">
			<tr>
				<th class="text-left">{$uniacid_fields['address']['title']}</th>
				<th class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#address-add">添加收货地址</a></div>
				</th>
			</tr>
			<tr ng-repeat="address in addresses track by address.id">
				<td class="table-label" ng-bind="address.pcda">
				</td>
				<td class="text-right">
					<div class="link-group">
						<a href="javascript:;" ng-if="!address.isdefault" ng-click="setDefaultAdd(address.id)">设为默认</a>
						<a href="javascript:;" data-toggle="modal" data-target="#address-edit" ng-click="choseEditAdd(address.id)">编辑</a>
						<a href="javascript:;" class="del" ng-click="delAdd(address.id)">删除</a>
					</div>
				</td>
			</tr>
		</table>
		<table class="table we7-table table-hover table-form">
			<col width="140px">
			<col />
			<col width="100px">
			<tr>
				<th class="text-left" colspan="3">教育情况</th>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['studentid']['title']}</td>
				<td ng-bind="profile.studentid"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#studentid" ng-click="editInfo('studentid', profile.studentid)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['grade']['title']}</td>
				<td ng-bind="profile.grade"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#grade" ng-click="editInfo('grade', profile.grade)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['graduateschool']['title']}</td>
				<td ng-bind="profile.graduateschool"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#graduateschool" ng-click="editInfo('graduateschool', profile.graduateschool)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['education']['title']}</td>
				<td ng-bind="profile.education"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#education" ng-click="editInfo('education', profile.education)">修改</a></div>
				</td>
			</tr>
		</table>
		<table class="table we7-table table-hover table-form">
			<col width="140px">
			<col />
			<col width="100px">
			<tr>
				<th class="text-left" colspan="3">工作情况</th>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['company']['title']}</td>
				<td ng-bind="profile.company"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#company" ng-click="editInfo('company', profile.company)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['occupation']['title']}</td>
				<td ng-bind="profile.occupation"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#occupation" ng-click="editInfo('occupation', profile.occupation)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['position']['title']}</td>
				<td ng-bind="profile.position"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#position" ng-click="editInfo('position', profile.position)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['revenue']['title']}</td>
				<td ng-bind="profile.revenue"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#revenue" ng-click="editInfo('revenue', profile.revenue)">修改</a></div>
				</td>
			</tr>
		</table>
		<table class="table we7-table table-hover table-form">
			<col width="140px">
			<col />
			<col width="100px">
			<tr>
				<th class="text-left" colspan="3">{$uniacid_fields['bio']['title']}</th>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['constellation']['title']}</td>
				<td ng-bind="profile.constellation"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#constellation" ng-click="editInfo('constellation', profile.constellation)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['zodiac']['title']}</td>
				<td ng-bind="profile.zodiac"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#zodiac" ng-click="editInfo('zodiac', profile.zodiac)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['nationality']['title']}</td>
				<td ng-bind="profile.nationality"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#nationality" ng-click="editInfo('nationality', profile.nationality)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['height']['title']}</td>
				<td ng-bind="profile.height"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#height" ng-click="editInfo('height', profile.height)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['weight']['title']}</td>
				<td ng-bind="profile.weight"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#weight" ng-click="editInfo('weight', profile.weight)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['bloodtype']['title']}</td>
				<td ng-bind="profile.bloodtype"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#bloodtype" ng-click="editInfo('bloodtype', profile.bloodtype)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['idcard']['title']}</td>
				<td ng-bind="profile.idcard"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#idcard" ng-click="editInfo('idcard', profile.idcard)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['zipcode']['title']}</td>
				<td ng-bind="profile.zipcode"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#zipcode" ng-click="editInfo('zipcode', profile.zipcode)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['site']['title']}</td>
				<td ng-bind="profile.site"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#site" ng-click="editInfo('site', profile.site)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['affectivestatus']['title']}</td>
				<td ng-bind="profile.affectivestatus">{$profile['affectivestatus']}</td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#affectivestatus" ng-click="editInfo('affectivestatus', profile.affectivestatus)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['lookingfor']['title']}</td>
				<td ng-bind="profile.lookingfor"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#lookingfor" ng-click="editInfo('lookingfor', profile.lookingfor)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['bio']['title']}</td>
				<td ng-bind="profile.bio"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#bio" ng-click="editInfo('bio', profile.bio)">修改</a></div>
				</td>
			</tr>
			<tr>
				<td class="table-label">{$uniacid_fields['interest']['title']}</td>
				<td ng-bind="profile.interest"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#interest" ng-click="editInfo('interest', profile.interest)">修改</a></div>
				</td>
			</tr>
		</table>
		<table class="table we7-table table-hover table-form">
			<col width="140px">
			<col />
			<col width="100px">
			<tr>
				<th class="text-left" colspan="3">其他信息</th>
			</tr>
			<tr ng-repeat="field in custom_fields">
				<td class="table-label" ng-bind="uniacid_fields[field]['title']"></td>
				<td ng-bind="profile[field]"></td>
				<td class="text-right">
					<div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#other_field" ng-click="editInfo('other_field', field)">修改</a></div>
				</td>
			</tr>
		</table>
		<!-- 模态框开始 -->
		<div class="modal fade" id="groupid" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改会员组</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<select class="we7-select" ng-model="userOriginal.groupid" ng-options="group.groupid as group.title for group in groups"></select>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('groupid')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="gender" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['gender']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<select class="we7-select" ng-model="userOriginal.gender" ng-options="sex.id as sex.name for sex in sexes"></select>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('gender')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="nickname" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['nickname']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.nickname" class="form-control" placeholder="{$uniacid_fields['nickname']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('nickname')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="realname" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['realname']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.realname" class="form-control" placeholder="{$uniacid_fields['realname']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('realname')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="births" role="dialog">
			<div class="we7-modal-dialog modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['birthyear']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							{php echo tpl_fans_form('birth',$profile['birth']);}
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" ng-click="httpChange('births')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="resides" role="dialog">
			<div class="we7-modal-dialog modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['nationality']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							{php echo tpl_fans_form('reside',$profile['resides']);}
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" ng-click="httpChange('resides')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="address" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['resideprovince']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.address" class="form-control" placeholder="详细地址" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('address')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="mobile" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['mobile']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.mobile" class="form-control" placeholder="{$uniacid_fields['mobile']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('mobile')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="qq" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">{$uniacid_fields['qq']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.qq" class="form-control" placeholder="{$uniacid_fields['qq']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('qq')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="email" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['email']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.email" class="form-control" placeholder="{$uniacid_fields['email']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('email')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="password" role="dialog">
			<div class="we7-modal-dialog modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改密码</div>
					</div>
					<div class="modal-body text-center">
						<div class="we7-form" style="width: 450px; margin: 0 auto;">
							<div class="form-group">
								<label for="" class="control-label col-sm-2">新密码</label>
								<div class="form-controls col-sm-10">
									<input type="password" value="" class="form-control new-password">
								</div>
							</div>
							<div class="form-group">
								<label for="" class="control-label col-sm-2">确认新密码</label>
								<div class="form-controls col-sm-10">
									<input type="password" value="" class="form-control renew-password">
								</div>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" ng-click="httpChange('password')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="telephone" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['telephone']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.telephone" class="form-control" placeholder="{$uniacid_fields['telephone']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('telephone')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="msn" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['msn']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.msn" class="form-control" placeholder="{$uniacid_fields['msn']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('msn')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="taobao" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['taobao']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.taobao" class="form-control" placeholder="淘宝账号" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('taobao')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="alipay" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['alipay']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.alipay" class="form-control" placeholder="{$uniacid_fields['alipay']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('alipay')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="studentid" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['studentid']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.studentid" class="form-control" placeholder="{$uniacid_fields['studentid']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('studentid')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="grade" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['grade']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.grade" class="form-control" placeholder="{$uniacid_fields['grade']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('grade')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="graduateschool" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['graduateschool']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.graduateschool" class="form-control" placeholder="{$uniacid_fields['graduateschool']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('graduateschool')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="education" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['education']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<select class="we7-select" ng-model="userOriginal.education" ng-options="education for education in educations"></select>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('education')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="company" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['company']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.company" class="form-control" placeholder="{$uniacid_fields['company']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('company')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="occupation" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['occupation']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.occupation" class="form-control" placeholder="{$uniacid_fields['occupation']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('occupation')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="position" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['position']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.position" class="form-control" placeholder="{$uniacid_fields['position']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('position')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="revenue" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['revenue']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.revenue" class="form-control" placeholder="{$uniacid_fields['revenue']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('revenue')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="interest" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['interest']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.interest" class="form-control" placeholder="{$uniacid_fields['interest']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('interest')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="bio" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">自我介绍</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.bio" class="form-control" placeholder="自我介绍" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('bio')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="lookingfor" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['lookingfor']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.lookingfor" class="form-control" placeholder="{$uniacid_fields['lookingfor']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('lookingfor')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="affectivestatus" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['affectivestatus']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.affectivestatus" class="form-control" placeholder="{$uniacid_fields['affectivestatus']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('affectivestatus')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="site" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['site']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.site" class="form-control" placeholder="{$uniacid_fields['site']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('site')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="zipcode" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['zipcode']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.zipcode" class="form-control" placeholder="{$uniacid_fields['zipcode']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('zipcode')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="idcard" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['idcard']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.idcard" class="form-control" placeholder="身份证号" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('idcard')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="weight" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['weight']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.weight" class="form-control" placeholder="{$uniacid_fields['weight']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('weight')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="height" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['height']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.height" class="form-control" placeholder="{$uniacid_fields['height']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('height')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="nationality" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['nationality']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal.nationality" class="form-control" placeholder="{$uniacid_fields['nationality']['title']}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('nationality')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="constellation" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['constellation']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<select class="we7-select" ng-model="userOriginal.constellation" ng-options="constellation for constellation in constellations"></select>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('constellation')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="zodiac" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['zodiac']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<select class="we7-select" ng-model="userOriginal.zodiac" ng-options="zodiac for zodiac in zodiacs"></select>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('zodiac')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="bloodtype" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title">修改{$uniacid_fields['bloodtype']['title']}</div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<select class="we7-select" ng-model="userOriginal.bloodtype" ng-options="bloodtype for bloodtype in bloodtypes"></select>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('bloodtype')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="other_field" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="we7-modal-dialog modal-dialog we7-form">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<div class="modal-title" ng-bind="other_field_name"></div>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<input type="text" ng-model="userOriginal[other_field_title]" class="form-control" placeholder="{{other_field_name}}" />
							<span class="help-block"></span>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('other_field')">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="address-add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
			<div class="modal-dialog" role="document">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title" id="address-add">添加收货地址</h4>
					</div>
					<div class="modal-body">
						<div class="addaddress">
							<div class="form-group">
								<label class="col-sm-2 control-label">姓名</label>
								<div class="col-sm-9 col-xs-12">
									<input class="form-control" type="text" ng-model="addAddress.name" value="">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">手机号</label>
								<div class="col-sm-9 col-xs-12">
									<input class="form-control" type="text" ng-model="addAddress.phone" value="">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">邮编</label>
								<div class="col-sm-9 col-xs-12">
									<input class="form-control" type="text" ng-model="addAddress.code" value="">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">收货地址</label>
								<div class="col-sm-9 col-xs-12">
									{php echo tpl_form_field_district("addaddress");}
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">详细地址</label>
								<div class="col-sm-9 col-xs-12">
									<input class="form-control" type="text" ng-model="addAddress.detail" value="">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label"></label>
								<div class="col-sm-9 col-xs-12">
									<a href="javascript:"  ng-click="addAdd()" class="btn btn-default btn-primary">提交</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="address-edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
			<div class="modal-dialog" role="document">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title" id="address-edit">修改收货地址</h4>
					</div>
					<div class="modal-body">
						<div class="addaddress">
							<div class="form-group">
								<label class="col-sm-2 control-label">姓名</label>
								<div class="col-sm-9 col-xs-12">
									<input class="form-control" type="text" ng-model="editAddress.name" value="">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">手机号</label>
								<div class="col-sm-9 col-xs-12">
									<input class="form-control" type="text" ng-model="editAddress.phone" value="">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">邮编</label>
								<div class="col-sm-9 col-xs-12">
									<input class="form-control" type="text" ng-model="editAddress.code" value="">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">收货地址</label>
								<div class="col-sm-9 col-xs-12">
									{php echo tpl_form_field_district("addaddress");}
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">详细地址</label>
								<div class="col-sm-9 col-xs-12">
									<input class="form-control" type="text" ng-model="editAddress.detail" value="">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label"></label>
								<div class="col-sm-9 col-xs-12">
									<a href="javascript:"  ng-click="editAdd(editAddress.id)" class="btn btn-default btn-primary">提交</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 模态框结束 -->
		<!--end编辑会员-->
		{/if}
		
	</form>
</div>
<script type="text/javascript">
	angular.module('memberAPP').value('config', {
		profile:{php echo !empty($profile) ? json_encode($profile) : 'null'},
		custom_fields:{php echo !empty($custom_fields) ? json_encode($custom_fields) : 'null'},
		all_fields:{php echo !empty($all_fields) ? json_encode($all_fields) : 'null'},
		uniacid_fields:{php echo !empty($uniacid_fields) ? json_encode($uniacid_fields) : 'null'},
		groups:{php echo !empty($groups) ? json_encode($groups) : 'null'},
		addresses:{php echo json_encode($addresses)},
		uid:{$uid},
		links: {
			basePost: "{php echo url('mc/member/base_information', array('uid' => $uid))}",
			addAddressUrl: "{php echo url('mc/member/address', array('op' =>'addaddress', 'uid' => $uid))}",
			editAddressUrl: "{php echo url('mc/member/address', array('op' =>'editaddress', 'uid' => $uid))}",
			delAddressUrl: "{php echo url('mc/member/address', array('op' =>'deladdress','uid' => $uid))}",
			setDefaultAddressUrl: "{php echo url('mc/member/address', array('op' => 'isdefault', 'uid' => $uid))}",
		},
	});
	angular.bootstrap($('#js-base-information'), ['memberAPP']);
</script>
{/if}
{template 'common/footer'}